package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppCharmLevelDao;
import com.vf.admin.client.service.AppCharmLevelService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppCharmLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppCharmLevelServiceImpl implements AppCharmLevelService {

    @Autowired
    AppCharmLevelDao appBannerDao;

    /**
     * 查询列表
     */
    @Override
    public AppCharmLevel levelInfo(Integer level) {
        return appBannerDao.levelInfo(level);
    }

    @Override
    public List<AppCharmLevel> list(AppCharmLevel appCharmLevel, SplitPageBean splitPage) {
        return appBannerDao.list(appCharmLevel,splitPage);
    }

    @Override
    public void saveOrUpdate(AppCharmLevel appCharmLevel) {
        appBannerDao.saveOrUpdate(appCharmLevel);
    }

    @Override
    public AppCharmLevel getById(Integer id) {
        return appBannerDao.getById(id);
    }

    @Override
    public void deleteById(Integer id) {
        appBannerDao.deleteById(id);
    }

}
